package com.example.coding_problem;

import java.util.List;

public class Distance {

    /**
     * data : [{"persons":96,"distance":2.8133876888887244,"direction":true,"pass":false,"bus":1},{"persons":39,"distance":1.8133876888887244,"direction":true,"pass":false,"bus":2}]
     * RESULT : S
     * ERRMSG : 成功
     */

    private String RESULT;
    private String ERRMSG;
    private List<DataBean> data;

    public String getRESULT() {
        return RESULT;
    }

    public void setRESULT(String RESULT) {
        this.RESULT = RESULT;
    }

    public String getERRMSG() {
        return ERRMSG;
    }

    public void setERRMSG(String ERRMSG) {
        this.ERRMSG = ERRMSG;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * persons : 96
         * distance : 2.8133876888887244
         * direction : true
         * pass : false
         * bus : 1
         */

        private int persons;
        private double distance;
        private boolean direction;
        private boolean pass;
        private int bus;

        public int getPersons() {
            return persons;
        }

        public void setPersons(int persons) {
            this.persons = persons;
        }

        public double getDistance() {
            return distance;
        }

        public void setDistance(double distance) {
            this.distance = distance;
        }

        public boolean isDirection() {
            return direction;
        }

        public void setDirection(boolean direction) {
            this.direction = direction;
        }

        public boolean isPass() {
            return pass;
        }

        public void setPass(boolean pass) {
            this.pass = pass;
        }

        public int getBus() {
            return bus;
        }

        public void setBus(int bus) {
            this.bus = bus;
        }
    }
}
